\hypertarget{encoders_8c}{
\section{atmega1281/low/encoders/encoders.c File Reference}
\label{encoders_8c}\index{atmega1281/low/encoders/encoders.c@{atmega1281/low/encoders/encoders.c}}
}
{\ttfamily \#include \char`\"{}encoders.h\char`\"{}}\par
{\ttfamily \#include $<$avr/interrupt.h$>$}\par
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
unsigned int \hyperlink{group__nxbot__encoder_ga2bb92e75ace932c227b999813bf02aff}{encoders\_\-readLeft} (void)
\begin{DoxyCompactList}\small\item\em Read the left odometer. \item\end{DoxyCompactList}\item 
unsigned int \hyperlink{group__nxbot__encoder_ga0c464163534a8c0aa7ec050c8e9460e5}{encoders\_\-readRight} (void)
\begin{DoxyCompactList}\small\item\em Read the right odometer. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_ga77c8c684f9d572edf7f85fde23ca390d}{encoders\_\-readAll} (unsigned int $\ast$enc\mbox{[}$\,$\mbox{]})
\begin{DoxyCompactList}\small\item\em Read both odometers. \item\end{DoxyCompactList}\item 
unsigned int \hyperlink{group__nxbot__encoder_gadaa18e9376adb2838d4db7b819070083}{encoders\_\-read} (unsigned char enc)
\begin{DoxyCompactList}\small\item\em Read both odometers. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_gaf02e2149caeb6116f256783348031c86}{encoders\_\-init} (void)
\begin{DoxyCompactList}\small\item\em Inizialisation of encoders hardware. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_gab663edeed94236bcf5c7b4cc508c0506}{encoders\_\-start} (void)
\begin{DoxyCompactList}\small\item\em Enables both encoders. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_gaa9f0d84783bf4bc18350db551455ed81}{encoders\_\-stop} (void)
\begin{DoxyCompactList}\small\item\em Disables both encoders. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_ga9afcfd5f2888b73fa165cb174ddc6759}{encoders\_\-writeLeft} (unsigned int val)
\begin{DoxyCompactList}\small\item\em Write predefined value for left encoder. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_gaaa61cfb8d7784d0a532402f8c762165c}{encoders\_\-writeRight} (unsigned int val)
\begin{DoxyCompactList}\small\item\em Write predefined value for right encoder. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_ga19b9241b75d9aadb3293d06f45270120}{encoders\_\-write} (unsigned int left, unsigned int right)
\begin{DoxyCompactList}\small\item\em Write predefined values for the encoders. \item\end{DoxyCompactList}\item 
void \hyperlink{group__nxbot__encoder_ga5664efae48b33c8cee94b5313a58b0a2}{encoders\_\-setDirection} (unsigned char left, unsigned char right)
\begin{DoxyCompactList}\small\item\em Defines wether the encoder should count backward or forward. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
